<%--
  Created by IntelliJ IDEA.
  User: asus-pc
  Date: 2017/11/10 0010
  Time: 9:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查询系统</title>
    <script type="text/javascript">
        function checked() {
            var trainnum=document.getElementById("trainnum");
            var onestation=document.getElementById("onestation");
            var otherstation=document.getElementById("otherstation");

            if (trainnum.value==""||trainnum.value==null){
                alert("车次不能为空！")
                return false;
            }
            if (onestation.value==""||onestation.value==null){
                alert("出发地不能为空！")
                return false;
            }
            if (otherstation.value==""||otherstation.value==null){
                alert("目的地不能为空！")
                return false;
            }
            return true;
        }
        
    </script>
</head>
<body>
    <h1 align="center">查询车票价格</h1>
    <div align="center">
        <form action="/select/station" id="station" onsubmit="return checked()" method="post">
            车&nbsp;次:<input type="text" name="trainnum" id="trainnum"><br>
            出发地:<input type="text" name="onestation" id="onestation"><br>
            目的地:<input type="text" name="otherstation" id="otherstation"><br>
            <input type="submit" id="submit" value="查询">
        </form>
    </div>
</body>
</html>
